﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HaumDisplay
{
    public class HaumEllipse : HaumShape
    {
        public PointF center;

        public float radius1;

        public float radius2;

        public float angle;

        internal Pen pen;

        internal Color invertColor;

        internal bool isSelect;

        internal bool startGraphic;

        public HaumEllipse(Color color, int borderSize = 1) {
            this.center = PointF.Empty;
            this.radius1 = 0;
            this.radius2 = 0;
            this.angle = 0;
            this.pen = new Pen(color, borderSize);
            //this.invertColor = Color.FromArgb(255 - color.R, 255 - color.G, 255 - color.B);
            this.invertColor = Color.FromArgb(color.R / 2, color.G / 2, color.B / 2);
            this.isSelect = false;
            this.startGraphic = false;
            
        }

        public override string ToString()
        {
            return base.ToString();
        }

        public override void Graphic(Graphics g, GraphicHelper myGraphic)
        {
            g.SmoothingMode = SmoothingMode.HighQuality;
            base.Graphic(g, myGraphic);
        }
    }
}
